package icu.funkye.confine.limiter.product;

/**
 * @author jianbin.chen
 */
public abstract class AbstractLimiter implements Limiter {

    protected int currentTps = 0;

    protected long currentSeconds = 1L;

    protected String resource;

    protected boolean enable = true;

    @Override
    public boolean isEnable() {
        return enable;
    }

    @Override
    public void setEnable(boolean enable) {
        this.enable = enable;
    }

}
